package com.zj.docker.enums;

/**
 * @Auther: zj
 * @Date: 2019/2/4 17:49
 * @Description:
 */
public enum LogEnum {

   UP(1,"aa"),
    DOCKER_START(2,"启动容器"),
    DOCKER_START_ERROR(20,"启动容器失败"),
    DOCKER_CREATE(30,"创建容器"),
    DOCKER_CREATE_ERROR(32,"创建容器失败"),
    DOCKER_STOP(40,"容器停止成功"),
    DOCKER_STOP_STRONG(42,"强制停止容器成功"),
    DOCKER_RESTART(50,"容器重启成功"),
    DOCKER_DELETE(60,"容器删除成功"),

    IMAGE_DELETE(70,"删除镜像成功"),
    IMAGE_EXPORT(71,"导出镜像成功"),
    IMAGE_CHANGE_STATUS(72,"镜像切换状态(公开/私有)"),
    ;

    private Integer code;

    private String message;

    LogEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
